package com.hxci.pointmap.model;

import java.util.Date;

public class EnvironmentData {
    private int id;
    private String deviceName;
    private double temperature;  // 温度
    private double humidity;     // 湿度
    private double light;        // 光照强度
    private double co2;          // CO2浓度
    private Date recordTime;    // 记录时间

    public EnvironmentData() {
    }

    public EnvironmentData(int id, String deviceName, double temperature, double humidity, 
                          double light, double co2, Date recordTime) {
        this.id = id;
        this.deviceName = deviceName;
        this.temperature = temperature;
        this.humidity = humidity;
        this.light = light;
        this.co2 = co2;
        this.recordTime = recordTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public double getTemperature() {
        return temperature;
    }

    public void setTemperature(double temperature) {
        this.temperature = temperature;
    }

    public double getHumidity() {
        return humidity;
    }

    public void setHumidity(double humidity) {
        this.humidity = humidity;
    }

    public double getLight() {
        return light;
    }

    public void setLight(double light) {
        this.light = light;
    }

    public double getCo2() {
        return co2;
    }

    public void setCo2(double co2) {
        this.co2 = co2;
    }

    public Date getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Date recordTime) {
        this.recordTime = recordTime;
    }
}
